﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ForecastList.aspx.cs" Inherits="ForecastList" MasterPageFile="~/APP_Master/MasterPage_Default.master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="css/webstyle.css" rel="stylesheet" />
    <script src="App_Themes/js/jiangjinjisuan/jquery-1.js" type="text/javascript"></script>
    <script type="text/javascript">
     
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 1200px; margin: 0 auto; height: 1120px">
        <div class="tr yctj_title">您当前所在位置：首页 > <span class="yctj_text">预测推荐</span></div>
        <div>
            <div class="gengduo">
                <div style="height: 40px"></div>
                <ul class="gengduo_list">
                    <%if (forecastList != null)
                        {
                            for (int i = 0; i < forecastList.Count; i++)
                            {%>
                    <li><span style="color: #f60">· </span><a href="ForecastPostInfo.aspx?id=<%=forecastList[i].id %>"><%=forecastList[i].Title %></a><span style="color: gray">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=forecastList[i].AddTime.ToString("MM/dd/yyyy HH:mm")%></span></li>
                    <%}
                        } %>
                </ul>
                <%if (forecastList != null)
                    { %>
                <div class="zdgd_page">
                    <webdiyer:AspNetPager SubmitButtonClass="buttons" ID="AspNetPager1"
                        runat="server" AlwaysShow="True" FirstPageText="首页"
                        NextPageText="下一页" PrevPageText="前一页" LastPageText="尾页" PageSize="25"
                        OnPageChanged="AspNetPager1_PageChanged">
                    </webdiyer:AspNetPager>
                </div>
                <%}%>
            </div>
            <div class="yctj_r">
                <div class="yctj_notice">
                    <div class="yctj_r_title">最新公告</div>
                    <ul class="yctj_r_list">
                        <% if (tzlist != null)
                            {
                                int count = tzlist.Count;
                                if (tzlist.Count > 4)
                                {
                                    count = 4;
                                }
                                for (int i = 0; i < count; i++)
                                {%>
                        <li><a href="news_details.aspx?id=<%=tzlist[i].id %>"><span class="fl"><< <%=tzlist[i].Title.Length > 16 ? tzlist[i].Title.Substring(0, 16) : tzlist[i].Title %> </span><span class="fr"><%=tzlist[i].AddTime.ToString("MM-dd") %></span></a></li>
                        <%}
                            } %>
                    </ul>
                </div>
                <div style="padding: 10px 0 0 0;">
                    <div class="yctj_r_title1"><span class="fl">中彩排行</span><span class="fr" style="font-size: 13px;">本站累计中奖 <span style="color: #d82715"><%=jiangjin2 %></span> 亿元</span></div>
                    <ul class="yctj_r_list1">
                        <%if (userAccount != null && userAccount.Count > 0)
                            {
                                for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++)
                                {  %>
                        <li><span <%if (i < 3)
                                { %>class="dj_text3"
                            <%}
                                else
                                { %>
                            class="yctj_text3" <%} %>><%=i+1 %></span> <span><%=SelectName(userAccount[i].user_id)%> </span><span class="fr tr"><%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000,2)%> 万元 </span></li>
                        <% }
                            }%>
                    </ul>
                </div>
                <div style="padding: 10px 0 0 0;">
                    <div class="yctj_r_title1"><span class="fl">推荐方案</span><a href="ForecastPost_List.aspx" class="fr" style="font-size: 12px; color: #6c6c6c;">更多>></a></div>
                    <ul class="yctj_r_list2">
                        <%if (forecastNew != null && forecastNew.Count > 0)
                            { %>
                        <%for (int k = 0; k < forecastNew.Count; k++)
                            {%>
                        <li>· <a href="ForecastPostInfo.aspx?id=<%=forecastNew[k].id %>"><%=forecastNew[k].Title.Length > 16 ? forecastNew[k].Title.Substring(0, 16)+"..." : forecastNew[k].Title %></a></li>
                        <%--   <li><a href="news_details.aspx?id=<%=forecastNew[k].id%>&type=7"><%=forecastNew[k].Title%></a></li>--%>
                        <%}
                            }%>
                    </ul>
                </div>
                <div style="padding: 12px 0 0 0;">
                    <img src="images/yctj_ad.jpg" width="280" height="146">
                </div>
                <div style="padding: 12px 0 0 0;">
                    <img src="images/yctj_ad.jpg" width="280" height="146">
                </div>
            </div>
        </div>
    </div>
    <div>
</asp:Content>


